<?php
class LiuyanAction extends Action{
    
    public function index(){
        $m = D('Liuyan');
        if(false === $m->create()){$this->error($m->getError());}
        if(false === $m->add()){$this->error('提交失败');}
        $this->success('提交留言成功',U('Home/Index/index'));
    }
    
}